<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>编辑专项基金</title>
		<script charset="utf-8" src="editor/kindeditor.js"></script>
		<script>        
			KE.show(
				{
					id : 'article_content',
					resizeMode : 1,
					items : [
								'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
								'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
								'insertunorderedlist', '|', 'emoticons', 'link']
				}
			);
		</script>
	</head>
	<body>
		<div class="div_title">
			<s:if test="type==1">
				编辑团学快讯
			</s:if>
			<s:elseif test="type==2">
				编辑通知公告
			</s:elseif>
			<s:elseif test="type==3">
				编辑机构设置
			</s:elseif>
			<s:elseif test="type==4">
				编辑工作职责
			</s:elseif>
			<s:elseif test="type==5">
				编辑团委人员
			</s:elseif>
			<s:elseif test="type==6">
				编辑校团发
			</s:elseif>
			<s:elseif test="type==7">
				编辑校团通
			</s:elseif>
			<s:elseif test="type==8">
				编辑新闻导读
			</s:elseif>
			<s:elseif test="type==9">
				编辑团学视频
			</s:elseif>
			<s:elseif test="type==10">
				编辑图片新闻
			</s:elseif>
			<s:elseif test="type==11">
				编辑下载文件
			</s:elseif>
			<s:elseif test="type==12">
				编辑社团风采
			</s:elseif>
			<s:elseif test="type==13">
				编辑常用审批
			</s:elseif>
			<s:elseif test="type==14">
				编辑团内新闻
			</s:elseif>
			<s:elseif test="type==15">
				编辑院系新闻
			</s:elseif>
		</div>
		<div class="div_article">
			<s:form action="manage/editArticle.action" method="POST" theme="simple" enctype="multipart/form-data">
				<input type="hidden" name="type" value="${article.type}"/>
				<input type="hidden" name="part" value="${part}"/>
				<input type="hidden" name="article.type" value="${article.type}"/>
				<input type="hidden" name="article.id" value="${article.id}"/>
				<table>
					<tbody>
						<tr>
							<td class="td_key">
								标题：
							</td>
							<td>
								<s:textfield name="article.title" cssClass="input_long"></s:textfield>
							</td>
						</tr>
						<tr>
							<td class="td_key">
								图片：
							</td>
							<td>
								<s:file name="articleImage" cssClass="input_long"></s:file>
							</td>
						</tr>
						<tr>
							<td class="td_key">
								附件：
							</td>
							<td>
								<s:file name="articleFile" cssClass="input_long"></s:file>
							</td>
						</tr>
						<tr>
							<td class="td_key">
								内容：
							</td>
							<td>
								<s:textarea id="article_content" name="article.content" cols="80" rows="30"></s:textarea>	
							</td>
						</tr>
						<tr>
							<td>
							</td>
							<td>
								<s:submit></s:submit>
							</td>
						</tr>
					</tbody>
				</table>
			</s:form>
		</div>
	</body>
</html>